package com.ecr.hub.model.wagon;

import com.ecr.hub.model.AbstractBaseHub;

public class WagonStatus extends AbstractBaseHub implements Cloneable {

	private static final long serialVersionUID = 1L;

	private String label;
	private boolean trailer;

	/**
	 * Constructeur.
	 */
	public WagonStatus(){
		setId(0);
		setLabel("");
		setTrailer(false);
	}
	
	// *************************************
	// Les getters et les setters.
	// *************************************

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public boolean isTrailer() {
		return trailer;
	}

	public void setTrailer(boolean trailer) {
		this.trailer = trailer;
	}

	// **********************
	// Le clone du statut.
	// **********************

	public Object clone() {

		WagonStatus s = null;
		try {
			s = (WagonStatus) super.clone();
		} catch (CloneNotSupportedException e) {
			// RAS.
		}
		return s;
	}
}
